<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/><xsl:template match="/"><xsl:variable name="photo_counter" select="count(/root/photos/*)"/><photos size="{$photo_counter}"><xsl:for-each select="/root/photos/*"><xsl:variable name="photoId"><xsl:value-of select="photo_id"/></xsl:variable><photo id="{$photoId}"><title><xsl:value-of select="photo_title"/></title><description><xsl:value-of select="photo_title"/></description><url><xsl:value-of select="photo_url"/></url><file><xsl:value-of select="photo_file_url"/></file><longitude><xsl:value-of select="longitude"/></longitude><latitude><xsl:value-of select="latitude"/></latitude><width><xsl:value-of select="width"/></width><height><xsl:value-of select="height"/></height><date><xsl:value-of select="upload_date"/></date></photo></xsl:for-each></photos></xsl:template></xsl:stylesheet>
